﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FxCopContrib.Tests.DoNotIgnoreResultOfImmutableMethodsTestCases
{
    public class ShouldTriggerOnTheseMethods
    {
        public void DontIgnoreDatetime()
        {
            DateTime value = DateTime.UtcNow;
            value.AddHours(12);
        }

        public void DontIgnoreTimeSpan()
        {
            TimeSpan.FromMinutes(1).Add(TimeSpan.FromSeconds(1));
        }

        public void DontIgnoreDateTimeAndTimeSpan()
        {
            DateTime.UtcNow.Subtract(DateTime.Now);
        }
    }
}
